

//
//  XiangQingView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/5.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "XiangQingView.h"



@implementation XiangQingView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.infoBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        self.infoBtn.frame = CGRectMake(0, 0, WIDTH * 375 / 2, HEIGH * 40);
        [self.infoBtn setTitle:@"商品详情" forState:UIControlStateNormal];
        [self.infoBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [self.infoBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
        self.infoBtn.backgroundColor = [UIColor lightGrayColor];
        //        self.infoBtn.tintColor = [UIColor blackColor];
        self.infoBtn.layer.borderWidth = 0.5;
        [self addSubview:self.infoBtn];
        
        self.sevenBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        self.sevenBtn.frame = CGRectMake(WIDTH * 375 / 2, 0, WIDTH * 188, HEIGH * 40);
        [self.sevenBtn setTitle:@"产品信息" forState:UIControlStateNormal];
        self.sevenBtn.backgroundColor = [UIColor lightGrayColor];
        [self.sevenBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
        [self.sevenBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        //        self.sevenBtn.tintColor = [UIColor blackColor];
        self.sevenBtn.layer.borderWidth = 0.5;
        [self addSubview:self.sevenBtn];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
